<?php 
/**
 * @version			$Id$
 * @author			Richard Asp
 * @package			Joomla
 * @subpackage		gnudoor
 * @copyright		(C) 2010 gnudoor LLC
 * @license      GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

defined( '_JEXEC' ) or die( 'Restriced access' ); ?>
<h1>Default Take Ownership Page</h1>
<?php 
// JHTML::_('script', 'form.js', 'components/com_gnudoor/assets/js/');
// JHTML::_('script', 'datetimepicker_css.js', 'components/com_gnudoor/assets/js/');
JHTML::_('stylesheet', 'form.css','components/com_gnudoor/assets/css/');
//JHTML::_('stylesheet', 'rfnet.css','components/com_gnudoor/assets/css/');
//$calgif = JHTML::image('components/com_gnudoor/assets/img/cal.gif','');
JHTML::_('behavior.formvalidation');

?>
<script language="javascript">
function myValidate(f) {
   if (document.formvalidator.isValid(f)) {
      f.check.value='<?php echo JUtility::getToken(); ?>'; //send token
      return true; 
   }
   else {
      var msg = 'Some values are not acceptable.  Please retry.';
 
      //Example on how to test specific fields
      if($('email').hasClass('invalid')){msg += '\n\n\t* Invalid E-Mail Address';}
 
      alert(msg);
   }
   return false;
}
</script>

<div id="form_container" class="myform">

		<form id="form_253539" name="helpForm" class="form-validate"  method="post" action="index.php" onSubmit="return myValidate(this);">
<fieldset>
	   <legend>Provider take ownership of event.
		</legend>

  <table>
    <caption class="cap">
    </caption>
    <tr>
      <td><label class="description" for="name"><?php echo $this->titles[formName]; ?></label></td>
      <td><?php echo $this->row->name; ?></td>
    </tr>
    <tr>
      <td><label class="description" for="dateDue"><?php echo $this->titles[formDueDate]; ?></label></td>
      <td><?php echo $this->row->dateDue; ?></td>
      
    </tr>
    <tr>
      <td><label class="description" for="description"><?php echo $this->titles[formDescription]; ?></label></td>
      <td><?php echo $this->row->description; ?></td>
    </tr>
    <tr>
      <td><label class="description" for="value"><?php echo JText::_('Bid'); ?></label></td>
      <td><input name="value" type="text" /></td>
    </tr>
  </table>
<button type="submit">Click to take ownership</button>  
<button type="button" >Cancel</button>  
<input type="hidden" name="option" value="com_gnudoor" />
<input type="hidden" name="controller" value="providers" />
<input type="hidden" name="task" value="saverecord" />
<input type="hidden" name="providerid" value="<?php echo $this->userid->id; ?>" />
<input type="hidden" name="projectid" value="<?php echo $this->row->id; ?>" />

</fieldset>
</form>
</div>
